<?xml version="1.0" encoding="utf-8"?>
<!-- 规范说明 begin -->
<!-- 1.标签名和属性名统一使用小写字母（不能用小写字母的地方请做出说明） -->
<!-- 2.标签名和属性名的单词之间的分隔符统一用点“.” (不能用“.”分隔的地方请做出说明) -->
<!-- 3.配置项只有单个值（value属性后面直接以反斜杠“/”结束，详细见example示例） -->
<!-- 规范说明 end -->
<global> 
  <!-- example begin -->  
  <example> 
    <!-- 配置项只有单个值（value属性后面直接以反斜杠“/”结束） -->  
    <property name="what.is.your.name" value="bonree"/>  
    <!-- 配置项有多个值 -->  
    <property name="multi.value"> 
      <list> 
        <value>1</value>  
        <value>2</value>  
        <value>3</value> 
      </list> 
    </property> 
  </example>  
  <!-- example end -->  
  <!-- 各项目配置文件在zk中的位置 -->  
  <!-- hbasetableInfo.xml: /bonree/config/hbase_table -->  
  <!-- platform-conf-raw.xml: /bonree/config/platform -->  
  <!-- management.xml: /bonree/config/management -->  
  <!-- bop-conf-raw.xml: /bonree/config/bop -->  
  <!-- sdk-conf-raw.xml: /bonree/config/sdk -->  
  <!-- global.xml: /bonree/config/global -->  
  <!-- server-conf-raw.xml: /bonree/config/server -->  
  <!-- browser-conf-raw.xml: /bonree/config/browser -->  
  <!-- zeus-conf.xml: /bonree/config/zeus  -->  
  <!-- 1.公共变量, 多项目共用 -->  
  <common> 
    <!-- 文件路径,各项目可在此目录后扩展各自己的目录(以各项目名为目录) 适用项目: platform, browser -->  
    <property name="root.folder" value="/data/br/"/>  
    <!-- 融合数据转发开关, 默认为关 适用项目: platform(部署时设置为true)，browser、server、sdk（如果没有融合设置为false） -->  
    <property name="platform.flag" value="false"/>  
    <!-- nfs基本路径,各项目可在此目录后扩展各自己的目录(以各项目名为目录)-->  
    <property name="nfs.path" value="/data/br/nfs/"/>  
    <!-- 是否支持国际化 ,true支持，false不支持，默认为true-->  
    <property name="language.flag" value="true"/> 
  </common>  
    <!--view配置-->
    <zeus>
	<property name="zeus.url" value="{%if groups.zeus is defined%}{% for host in groups.zeus %}http://{{  hostvars[host].inventory_hostname }}:{{ zeus.port }}/v1{% if not loop.last %},{% endif %}{% endfor %}{%endif%}"/>
    <server>
          <property name="zeus.username" value="sjtest" />
          <property name="zeus.token" value="98d71a0c6fff9051" />
    </server>
    </zeus>
	<druid>
            <property name="queryNode" value="{%if groups.druid_broker is defined %}{% for host in groups.druid_broker %}http://{{  host }}:{{ druid.broker.port }}{% if not loop.last %},{% endif %}{% endfor %}{%endif%}"/>
            <!-- overlord地址,多个用逗号分隔  -->
            <property name="overlord" value="{%if groups.druid_overlord is defined %}{% for host in groups.druid_overlord %}http://{{  host }}:{{ druid.overlord.port }}{% if not loop.last %},{% endif %}{% endfor %}{%endif%}"/>
            <!-- coordinator地址,多个用逗号分隔  -->
            <property name="coordinator" value="{%if groups.druid_coordinator is defined %}{% for host in groups.druid_coordinator %}http://{{  host }}:{{ druid.coordinator.port }}{% if not loop.last %},{% endif %}{% endfor %}{%endif%}"/>
    </druid>
{% if (groups.druid_presto is defined ) and (groups.druid_presto|length) >= 1 %}
<presto>
    <!-- presto数据查询地址，多个用逗号分隔 -->
{% if (groups.druid_presto| length) == 1 %}
    <property name="queryNode" value="http://{{hostvars[groups.druid_presto[0]].ansible_ssh_host}}:{{ druid.presto.port }}" />
{% else %}
    <property name="queryNode" value="http://{{ druid.presto.virtual_ip }}:{{ druid.presto.port }}" />
{% endif %}
    <property name="user" value="presto-cli" />
    <property name="druidCatalogAndSchema" value="zeus.production" />
    <!-- mysql的catalog.schema，zeus进行外部数据源联查使用，若有多个mysql数据源，请用逗号分隔 -->
    <property name="mysqlCatalogAndSchemas" value="" />
</presto>
{% endif %}
    <gateway>
	<property name="gateway.url" value="http://127.0.0.1:9990"/>
    </gateway>
  <!-- 2.redis地址, 适用项目: platform, sdk, server,mp-->  
  <redis> 
    <!-- redis集群信息 -->  
    <property name="redis.cluster"> 
      <list>
      {%if groups.redis is defined %}
      {% for host in groups.redis %}
          {% for port in redis.ports %}
          <value>{{ host }}:{{ port }}</value>
          {% endfor %}
      {% endfor %}
      {%endif%}
      </list>
    </property>  
    <property name="redis.cluster.nat"> 
      <list> 
        <value>215.128.40.1/30.5.72.1:6429,215.128.40.1/30.5.72.1:6430</value> 
      </list> 
    </property>  
    <!-- redis密码设置 若改配置不存在或者改配置不设置密码，redis默认为无密码 -->  
    <property name="redis.password" value="{%if redis.encryption_pwd is defined %}{{ redis.encryption_pwd }}{%endif%}"/>
    <!-- redis版本 3.0 or 2.8 -->  
    <property name="redis.version" value="3.0"/>  
    <property name="redis.nat" value="false"/> 
  </redis>  
  <!--3. Kafka集群信息, 适用项目: platform, sdk, server -->  
  <kafka> 
    <property name="host"> 
      <list>
      {%if groups.kafka is defined %}
      {% for host in groups.kafka %}
          <value>{{ host }}:{{ kafka.port }}</value>
      {% endfor %}
      {%endif%}
      </list> 
    </property>  
    <!-- 20190525 SDK V5.9.1版本默认不加密，暂只支持SASL? NONE/SASL>-->  
    <property name="encrypt.type" value="NONE"/> 
  </kafka>  
  <!-- 4.hadoop信息, 适用项目: platform, sdk行为, browser -->  
  <!-- 如果不是ha部署，则直接填写namenode的ip地址信息加上端口9000 比如：hdfs://corenode:9000 -->  
  <!-- 如果是ha部署，需要将hdfs-site.xml中的信息配置在下面 -->  
  <hadoop>
  {% if groups.hadoop_nn is defined %}
    {% if (groups.hadoop_nn|length) >= 2 %}
    <!-- 20190524 SDK V5.9.1版本填写core-site.xml中配置文件中的对应配置 -->  
    <property name="fs.defaultFS" value="hdfs://hadoopha"/>
    <!-- 20190524 SDK V5.9.1版本新增以下是hdfs-site.xml中的配置key和value都需要按照配置文件中配置，ha部署是需要配置 -->  
    <property name="dfs.nameservices" value="hadoopha"/>
    <property name="dfs.ha.namenodes.hadoopha" value="{% for host in groups.hadoop_nn %}nn{{ loop.index }}{% if not loop.last %},{% endif %}{% endfor %}"/>
    {% for host in groups.hadoop_nn %}
    <property name="dfs.namenode.rpc-address.hadoopha.nn{{ loop.index }}" value="{{ hostvars[host].inventory_hostname}}:{{ hadoop.rpc_port }}"/>
    {% endfor %}
    <property name="dfs.client.failover.proxy.provider.hadoopha" value="org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider"/>
     {% elif (groups.hadoop_nn|length) == 1 %}
    <property name="fs.defaultFS" value="hdfs://{{ groups.hadoop_nn[0] }}:{{ hadoop.rpc_port }}"/>
    <property name="dfs.replication" value="{{ hadoop.hdfs_repl }}"/>
    <property name="fs.hdfs.impl" value="org.apache.hadoop.hdfs.DistributedFileSystem"/>
     {% else %}
    <property name="fs.defaultFS" value=""/>
    <property name="dfs.replication" value=""/>
    <property name="fs.hdfs.impl" value=""/>
    {% endif %}
  {%endif%}
  </hadoop>

  <!-- 5.spark信息, 适用项目: platform, sdk行为 -->  
  <!-- 如果是spark on yarn 模式，则配置 yarn-cluster -->  
  <!-- 如果是spark standalone，则配置spark的地址 -->  
  <spark> 
    <property name="spark.master" value="yarn-cluster"/>  
    <property name="spark.standby.master" value="yarn-cluster"/> 
  </spark>  
  <!-- 6.hbase信息, 适用项目: platform, sdk行为, browser -->  
  <!-- 此处list内容为hbase的zookeeper ip 地址 -->  
  <hbase> 
    <!--zookeeper中存储hbase元数据的文件夹-->  
    <property name="zookeeper.znode.parent" value="/hbase"/>  
    <property name="hbase.zookeeper.property.clientPort" value="{%if zk.port is defined %}{{zk.port}}{%endif%}"/>
    <property name="hbase.zookeeper.quorum"> 
      <list>
      {%if groups.zookeeper is defined%}
       {% for host in groups.zookeeper %}
          <value>{{ host }}</value>
       {% endfor %}
       {%endif%}
      </list> 
    </property> 
  </hbase>
  <!-- 7.各业务接口地址, 适用项目: platform -->
  <!-- 注意:1.ip要和实际部署的机器地址匹配 -->  
  <!-- 2.服务端口避免和其它程序冲突 -->  
  <service> 
    <!-- bop调度接口地址, 对应的jar包:BOP_Dispatcher.jar, 注意: 如果部署多个时,这个地址应该是ngnix地址 -->  
    <property name="dispatcher.addr" value="http://127.0.0.0:48081"/>  
    <!-- 接收融合数据的服务地址, 对应的jar包:Data_Server_Collection.jar, 注意: 如果部署多个时,这个地址应该是ngnix地址 -->  
    <property name="collection.addr" value="{%if init_zk.global.collection_addr is defined %}http://{{init_zk.global.collection_addr}}:{{init_zk.global.collection_port}}{%endif%}"/>
    <!-- BOP项目的业务数据接口地址, 注意: 对于一个程序,部署在两个机器上时,端口必须保持一样. -->  
    <interface> 
      <!-- SDK数据接口, 对应的jar包:BOP_Sdk_Data.jar -->  
      <property name="sdk.addr" value="http://127.0.0.1:48082"/>  
      <property name="server.addr" value="http://127.0.0.1:48083"/>  
      <property name="net.addr" value="http://127.0.0.1:48084"/>  
      <property name="platform.addr" value="http://127.0.0.1:48085"/>  
      <property name="browser.addr" value="http://127.0.0.1:48086"/>  
      <property name="cam.addr" value="http://127.0.0.1:48087"/>  
      <property name="user.addr" value="http://127.0.0.1:48088"/>  
      <property name="base.addr" value="http://127.0.0.1:48089"/>  
      <property name="task.addr" value="http://127.0.0.1:48091"/> 
    </interface>
    <!-- 产品访问地址（也是sso的server_name出处） -->
    <products> 
      <property name="net.url" value="http://net.bonree.com"/>  
      <property name="app.url" value="http://bmtp.bonree.com"/>
      <property name="mp.url" value="https://mp.bonree.com"/>
      <property name="platform.url" value="https://{{ init_zk.global.platform_url}}"/>
{% if groups.nginx is defined and (groups.nginx | length) == 1 %}
      <property name="sdk.url" value="http://{{ hostvars[groups.nginx[0]].ansible_ssh_host }}:{{ nginx.sdk_port }}"/>
      <property name="server.url" value="http://{{ hostvars[groups.nginx[0]].ansible_ssh_host }}:{{ nginx.server_port }}"/>
      <property name="browser.url" value="http://{{ hostvars[groups.nginx[0]].ansible_ssh_host }}:{{ nginx.browser_port }}"/>
      <property name="sdkBig.url" value="http://{{ hostvars[groups.nginx[0]].ansible_ssh_host }}:{{ nginx.sdkbig_port }}"/>
      <property name="sdkbig.tosdk.url" value="http://{{ hostvars[groups.nginx[0]].ansible_ssh_host }}:{{ nginx.sdk_port }}/sdk"/>
      <property name="view.url" value="http://{{ hostvars[groups.nginx[0]].ansible_ssh_host }}:{{ nginx.dataview_port }}"/>
      <!--DataView的数据上报地址，对应的controller服务-->
      <property name="view.controller.url" value="http://{{ hostvars[groups.nginx[0]].ansible_ssh_host }}:{{ nginx.dataviewupload_port }}"/>
	  <!--DataView的在线文档地址-->
	  <property name="view.document.url" value="http://{{ hostvars[groups.nginx[0]].ansible_ssh_host }}:{{ nginx.dataview_docport }}"/>
{% elif groups.nginx is defined and (groups.nginx | length) > 1 %}
      <property name="sdk.url" value="http://{{ nginx.virtual_ip }}:{{ nginx.sdk_port }}"/>
      <property name="server.url" value="http://{{ nginx.virtual_ip }}:{{ nginx.server_port }}"/>
      <property name="browser.url" value="http://{{ nginx.virtual_ip }}:{{ nginx.browser_port }}"/>
      <property name="sdkBig.url" value="http://{{ nginx.virtual_ip }}:{{ nginx.sdkbig_port }}"/>
      <property name="sdkbig.tosdk.url" value="http://{{ nginx.virtual_ip }}:{{ nginx.sdk_port }}/sdk"/>
      <property name="view.url" value="http://{{ nginx.virtual_ip }}:{{ nginx.dataview_port }}"/>
      <!--DataView的数据上报地址，对应的controller服务-->
      <property name="view.controller.url" value="http://{{ nginx.virtual_ip }}:{{ nginx.dataviewupload_port }}"/>
      <!--DataView的在线文档地址-->
      <property name="view.document.url" value="http://{{ nginx.virtual_ip }}:{{ nginx.dataview_docport }}"/>
{% else %}
      <property name="sdk.url" value=""/>
      <property name="server.url" value=""/>
      <property name="browser.url" value=""/>
      <property name="sdkBig.url" value=""/>
      <property name="sdkbig.tosdk.url" value=""/>
      <property name="view.url" value=""/>
      <!--DataView的数据上报地址，对应的controller服务-->
      <property name="view.controller.url" value=""/>
      <!--DataView的在线文档地址-->
      <property name="view.document.url" value=""/>
{% endif %}
    </products>
  </service>  
    <!-- 8.impala连接信息, 适用项目: platform -->
    <impala>
        <net>
            <!--查询v4数据impala分区 -->
            <property name="impala.interface.ip" value="10.240.67.171:1234" />
            <!--查询v4数据impala JDBC地址 -->
            <property name="impala.data.url" value="jdbc:impala://10.240.67.169:21050/v4;auth=noSasl,jdbc:impala://10.240.67.168:21050/v4;auth=noSasl,jdbc:impala://10.240.67.167:21050/v4;auth=noSasl,jdbc:impala://10.240.67.166:21050/v4;auth=noSasl,jdbc:impala://10.240.67.165:21050/v4;auth=noSasl" />
        </net>
    </impala>
  <!-- 9.数据库连接信息, 适用项目: platform, sdk, browser, server -->  
  <db>
    {%if groups.mysql is defined %}
    <sdk> 
      <!-- 数据库驱动类 -->  
      <property name="driver.class" value="com.mysql.jdbc.Driver"/>  
      <!-- 数据库地址 -->  
      <property name="url" value="jdbc:mysql://{{hostvars[groups.mysql[0]].ansible_ssh_host}}:{{mysql.port}}/br_sdk_druid?useServerPrepStmts=false&amp;serverTimezone=GMT%2B8&amp;rewriteBatchedStatements=true&amp;useUnicode=true&amp;characterEncoding=UTF-8&amp;allowMultiQueries=true&amp;zerodatetimebehavior=converttonull"/>  
      <!-- SDK 数据库用户名 -->  
      <property name="username" value="{{mysql.mysql_user}}"/>  
      <!-- SDK 数据库密码-->  
      <property name="password" value="{{mysql.mysql_passwd}}"/> 
    </sdk>  
    <server> 
      <master> 
        <property name="driver.class" value="com.mysql.jdbc.Driver"/>  
        <property name="url" value="jdbc:mysql://{{hostvars[groups.mysql[0]].ansible_ssh_host}}:{{mysql.port}}/apmserver?useServerPrepStmts=false&amp;serverTimezone=GMT%2B8&amp;rewriteBatchedStatements=true&amp;useUnicode=true&amp;characterEncoding=UTF-8&amp;allowMultiQueries=true&amp;zeroDateTimeBehavior=convertToNull"/>
        <property name="username" value="{{mysql.mysql_user}}"/>  
        <property name="password" value="{{mysql.mysql_passwd}}"/> 
      </master> 
    </server>  
    <serverfile> 
      <property name="driver.class" value="com.mysql.jdbc.Driver"/>  
      <property name="url" value="jdbc:mysql://{{hostvars[groups.mysql[0]].ansible_ssh_host}}:{{mysql.port}}/apmserverfiles?useServerPrepStmts=false&amp;rewriteBatchedStatements=true&amp;useUnicode=true&amp;characterEncoding=UTF-8&amp;allowMultiQueries=true&amp;zeroDateTimeBehavior=convertToNull"/>  
      <property name="username" value="{{mysql.mysql_user}}"/>
      <property name="password" value="{{mysql.mysql_passwd}}"/> 
    </serverfile>  
    <browser> 
      <property name="driver.class" value="com.mysql.jdbc.Driver"/>  
      <property name="url" value="jdbc:mysql://{{hostvars[groups.mysql[0]].ansible_ssh_host}}:{{mysql.port}}/br_browser?useUnicode=true&amp;serverTimezone=GMT%2B8&amp;characterEncoding=UTF8&amp;zeroDateTimeBehavior=convertToNull"/>  
      <property name="username" value="{{mysql.mysql_user}}"/>  
      <property name="pwd" value="{{mysql.mysql_passwd}}"/> 
    </browser>  
    <platform> 
      <property name="driver.class" value="com.mysql.jdbc.Driver"/>  
      <property name="url" value="jdbc:mysql://{{hostvars[groups.mysql[0]].ansible_ssh_host}}:{{mysql.port}}/br_integation?useServerPrepStmts=false&amp;serverTimezone=GMT%2B8&amp;rewriteBatchedStatements=true&amp;useUnicode=true&amp;characterEncoding=UTF-8&amp;allowMultiQueries=true&amp;zeroDateTimeBehavior=convertToNull"/>  
      <property name="username" value="{{mysql.mysql_user}}"/>  
      <property name="password" value="{{mysql.mysql_passwd}}"/> 
    </platform>  
    <cam> 
      <property name="driver.class" value="com.mysql.cj.jdbc.Driver"/>
      <property name="url" value="jdbc:mysql://{{hostvars[groups.mysql[0]].ansible_ssh_host}}:{{mysql.port}}/br_sso"/>  
      <property name="username" value="{{mysql.mysql_user}}"/>  
      <property name="password" value="{{mysql.mysql_passwd}}"/>  
      <property name="user.level" value="1"/>  
      <property name="name" value="sso"/>  
      <property name="type" value="sys"/> 
    </cam>  
    <netuser> 
      <property name="driver.class" value="com.mysql.cj.jdbc.Driver"/>
      <property name="user.level" value="1"/>  
      <property name="name" value="sso"/>  
      <property name="type" value="sys"/>  
      <property name="url" value="jdbc:mysql://{{hostvars[groups.mysql[0]].ansible_ssh_host}}:{{mysql.port}}/br_sso"/>  
      <property name="username" value="{{mysql.mysql_user}}"/>  
      <property name="password" value="{{mysql.mysql_passwd}}"/> 
    </netuser>  
    <!-- v4 sys库连接 -->  
        <netsys>
            <property name="driver.class" value="oracle.jdbc.driver.OracleDriver"/>
            <property name="url.bonreesys" value="jdbc:oracle:thin:@10.10.0.50:1521:brtest"/>
            <property name="user.bonreesys" value="BONREESYS"/>
            <property name="password.bonreesys" value="AF442998DCFC49DF629B492F013BABDD6BCE71A8674F35366ED87E9516DD580E"/>
        </netsys>
        <!-- bmtp sys库连接 -->
        <bmtpsys>
            <property name="driver.class" value="oracle.jdbc.driver.OracleDriver"/>
            <property name="url.bonreeapp" value="jdbc:oracle:thin:@10.10.0.208:1521:brdb04"/>
            <property name="user.bonreeapp" value="bonreebmtp"/>
            <property name="password.bonreeapp" value="041716E0E5B3BDCFC703F2281B09E16C"/>
        </bmtpsys>
        <stat>
            <property name="driver.class" value="oracle.jdbc.driver.OracleDriver"/>
            <property name="url.bonreestat" value="jdbc:oracle:thin:@10.10.0.212:1521:newboreedb"/>
            <property name="user.bonreestat" value="bonreestat"/>
            <property name="password.bonreestat" value="F277830483896DBF9E3D2A0B5B691920"/>
        </stat>
    <view>
          <!-- 数据库驱动类 -->  
          <property name="driver.class" value="com.mysql.jdbc.Driver"/>  
          <!-- 数据库地址 -->  
          <property name="url" value="jdbc:mysql://{{hostvars[groups.mysql[0]].ansible_ssh_host}}:{{mysql.port}}/br_view?useServerPrepStmts=false&amp;serverTimezone=GMT%2B8&amp;rewriteBatchedStatements=true&amp;useUnicode=true&amp;characterEncoding=UTF-8&amp;allowMultiQueries=true&amp;zerodatetimebehavior=converttonull"/>  
          <property name="username" value="{{mysql.mysql_user}}"/>  
          <!-- VIEW 数据库密码 -->  
          <property name="password" value="{{mysql.mysql_passwd}}"/> 
    </view>  
    <mp> 
          <!-- 数据库驱动类 -->  
          <property name="driver.class" value="com.mysql.jdbc.Driver"/>  
          <!-- 数据库地址 -->  
          <property name="url" value="jdbc:mysql://{{hostvars[groups.mysql[0]].ansible_ssh_host}}:{{mysql.port}}/br_mp?useServerPrepStmts=false&amp;serverTimezone=GMT%2B8&amp;rewriteBatchedStatements=true&amp;useUnicode=true&amp;characterEncoding=UTF-8&amp;allowMultiQueries=true&amp;zerodatetimebehavior=converttonull"/>  
          <!-- VIEW 数据库用户名 -->
          <property name="username" value="{{mysql.mysql_user}}"/>  
          <!-- VIEW 数据库密码 -->  
          <property name="pwd" value="{{mysql.mysql_passwd}}"/> 
    </mp> 
        <zeus>
          <property name="driver.class" value="com.mysql.jdbc.Driver"/>
          <property name="url" value="jdbc:mysql://{{hostvars[groups.mysql[0]].ansible_ssh_host}}:{{mysql.port}}/zeusdb?useServerPrepStmts=false&amp;serverTimezone=GMT%2B8&amp;rewriteBatchedStatements=true&amp;useUnicode=true&amp;characterEncoding=UTF-8&amp;allowMultiQueries=true&amp;zeroDateTimeBehavior=convertToNull"/>
          <property name="username" value="{{mysql.mysql_user}}"/>
          <property name="password" value="{{mysql.mysql_passwd}}"/>
        </zeus>
        {%endif%}
    </db>
    <alert>
        <!-- 短信配置 （报警用到）适用项目:  sdk, server, browser -->
        <sms>
            <property name="sms.server.addr" value="http://sms.joinbr.com/Bonreesms/smsservlet" />
            <property name="sms.server.name" value="bonreesmsadmin" />
            <property name="sms.server.pwd" value="DF39D09EDF093E1947D2AA964AB05C41" />
	    <property name="sms.server.is.anonymous" value="false"/>
        </sms>
        <!-- 邮件配置 （报警、自动报告用到） 适用项目:  sdk, server, browser-->
        <mail>
            <property name="mail.server.addr" value="smtp.bonree.com" />
            <property name="mail.server.port" value="465" />
            <property name="mail.server.name" value="redalert@bonree.com" />
            <property name="mail.server.pwd" value="A0878C5CFCBC13FF95C0AF0E379DDBC96BCE71A8674F35366ED87E9516DD580E" />
            <property name="mail.server.from" value="redalert@bonree.com" />
            <property name="mail.server.is.ssl" value="true" />
            <property name="mail.server.is.anonymous" value="false"/>
        </mail>
        <!--5.7.4版本对接平安报警中心增加,是否转发,部署平安时为true,其他客户设置false-->
        <mario>
            <!--是否转发，true：是，false：否-->
            <property name="mario.isForward" value="false" />
            <!-- 转发地址，是否转发为false时可以不配 -->
            <property name="mario.url" value="http://30.16.95.1:80/MarioAlert/exalert/receive" />
        </mario>
        <!-- bmc报警配置 -->
        <bmc>
            <!--是否转发，true：是，false：否-->
            <property name="bmc.is.forward" value="false" />
            <!--转发地址，当bmc.is.forward为false时，该值可不配置-->
            <property name="bmc.forward.addr" value="@10.6.10.173:1828#mc" />
            <!--bmc message最大字符数（目前最大支持40个汉字）-->
            <property name="bmc.message.max.size" value="10000" />
            <!-- msend工具的路径 -->
            <property name="bmc.msend.file.path" value="/data/br/jar/msend/"></property>
        </bmc>
    </alert>
    <!-- 公司信息 , 适用项目:  sdk, server, browser -->
    <company>
        <!-- 版权信息 -->
        <property name="copyright" value="Copyright ©2007-${currYear} All rights reserved." />
        <!-- 公司全称 -->
        <property name="company.full.name" value="北京博睿宏远数据科技股份有限公司 版权所有 京 ICP备 08104257 号 京公网安备 11010102002419" />
		<!-- 公司全称英文 -->  
		<property name="company.full.name.us" value="Bonree Data Technology Co.,ltd All Right Reserved 京 ICP备 08104257 号 京公网安备 11010102002419"/> 
        <!-- 系统标题 -->
        <property name="title" value="bonree" />
    </company>
    <!-- 单点登录 , 适用项目:  所有账号打通的需要登录的web系统 -->
    <sso>
{%if groups.sso is undefined %}
        <!-- cas访问地址 -->
        <property name="cas.url" value=""/>
        <!-- cas内网地址 -->
        <property name="cas.custom.url" value=""/>
{% elif groups.nginx is defined and (groups.nginx | length) == 1 %}
        <!-- cas访问地址 -->
        <property name="cas.url" value="http://{{ hostvars[groups.nginx[0]].ansible_ssh_host }}:{{ nginx.sso_port }}/cas"/>
        <!-- cas内网地址 -->
        <property name="cas.custom.url" value="http://{{ hostvars[groups.nginx[0]].ansible_ssh_host }}:{{ nginx.sso_port }}/cas"/>
{% elif groups.nginx is defined and (groups.nginx | length) > 1 %}
        <!-- cas访问地址 -->
        <property name="cas.url" value="http://{{ nginx.virtual_ip }}:{{ nginx.sso_port }}/cas"/>
        <!-- cas内网地址 -->
        <property name="cas.custom.url" value="http://{{ nginx.virtual_ip }}:{{ nginx.sso_port }}/cas"/>
{% else %}
        <!-- cas访问地址 -->
        <property name="cas.url" value=""/>
        <!-- cas内网地址 -->
        <property name="cas.custom.url" value=""/>
{% endif %}
        <!-- cas客户端类型，可选值'custom','basic'，若为custom时，cas地址采用cas.custom.url的值，否则采用cas.url值 -->
        <property name="cas.client.mode" value="custom"/>
    </sso>
</global>
